Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] job saved objects initialization #82450

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Nov 3, 2020

This PR has been closed, please go to #82639


Adds a check during the plugin's start to see if any ml-job saved objects exist. If they don't, and ML jobs do exist, it will run an initialization process to create them.

Also moves the mlLog service to a better location.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

// const { body } = await client.asInternalUser.count({
// index: '.ml-config',
// });
// return body.count > 0;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@droberts195 @legrego
This function needs to check that there is at least one ML job in existence.
I believe the fastest way to do this would be to perform a count on .ml-config. However, the kibana system user does not have read access to that index.
Instead i'm having to call both AD and DFA get endpoints to perform the same check (below).
Do you think it would be safe to give the kibana system user the ability to make this check?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not terribly familiar with the contents of .ml-config. It appears to be a listing of jobs? Is there anything else in that index?

A more direct question might be: Is there any information in that index that's not accessible via the ML APIs granted to users with the manage_ml cluster privilege? I'd be ok granting read access to the .ml-config index if this is true, since kibana_system already has that cluster privilege.

On the other hand, if there is information in this index that the kibana_system user currently doesn't have access to via other APIs, then I'd need a better understanding of that data before answering one way or another.

@jgowdyelastic
Copy link
Member Author

@elasticmachine merge upstream

kibanamachine and others added 10 commits November 3, 2020 12:23
* [Enterprise Search] Migrate shared LicenseBadge component

* Move files to Workplace Search dir

I mistakenly thought these were shared at the Enterprise Search level
…astic/kibana into job-saved-object-initialization
* [DOCS] Updates index patterns docs

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kaarina Tungseth <[email protected]>

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kaarina Tungseth <[email protected]>

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kaarina Tungseth <[email protected]>

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kaarina Tungseth <[email protected]>

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kaarina Tungseth <[email protected]>

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kaarina Tungseth <[email protected]>

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kaarina Tungseth <[email protected]>

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kaarina Tungseth <[email protected]>

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kaarina Tungseth <[email protected]>

* [DOCS] Incorporates review comments

* [DOCS] Incorporated edits

Co-authored-by: Kaarina Tungseth <[email protected]>
)

* Add new TelemetryLogic helpers

- DRYs out need to import/pass http lib
- adds product-specific helpers which DRYs out an extra line

* Update all previous sendTelemetry fns to use new logic actions

* Update unit tests for updated components

- Create reusable mocks
- Update overview_logic.ts to use new Kea mock helpers (required for recent_activity.test to pass)

* Cleanup: Remove old sendTelemetry fn
+ update tests

* [PR feedback] Correctly assert the async thrown error
* Refactor Remote Clusters client integration tests for readability.
- Colocate helpers with test files.
- Remove default API responses from HTTP response mocking functions to make behavior clearer at call sites.
@jgowdyelastic jgowdyelastic requested review from a team as code owners November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested a review from a team November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested a review from a team November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested a review from a team November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested a review from a team November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested review from a team as code owners November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested a review from a team November 4, 2020 17:32
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner November 4, 2020 17:32
@botelastic botelastic bot added Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) Team:APM All issues that need APM UI Team support Team:Fleet Team label for Observability Data Collection Fleet team labels Nov 4, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@jgowdyelastic
Copy link
Member Author

A slip of the finger completely broke this PR.
Closing and creating a new one.

@kibanamachine
Copy link
Contributor

kibanamachine commented Nov 4, 2020

💔 Build Failed

Failed CI Steps


Test Failures

Plugin Functional Tests.test/plugin_functional/test_suites/data_plugin/index_patterns·ts.data plugin index patterns can get all ids

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:05:29]         └-: data plugin
[00:05:29]           └-> "before all" hook
[00:05:29]           └-> "before all" hook
[00:05:29]             │ info [../functional/fixtures/es_archiver/getting_started/shakespeare] Loading "mappings.json"
[00:05:29]             │ info [../functional/fixtures/es_archiver/getting_started/shakespeare] Loading "data.json.gz"
[00:05:29]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [shakespeare] creating index, cause [api], templates [], shards [5]/[1]
[00:05:29]             │ info [../functional/fixtures/es_archiver/getting_started/shakespeare] Created index "shakespeare"
[00:05:29]             │ debg [../functional/fixtures/es_archiver/getting_started/shakespeare] "shakespeare" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:05:29]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [shakespeare/ks7mLyBJRrqhsO6D2uBMAg] update_mapping [_doc]
[00:05:38]             │ info [../functional/fixtures/es_archiver/getting_started/shakespeare] Indexed 111396 docs into "shakespeare"
[00:05:38]             │ debg navigating to settings url: http://localhost:6121/app/management
[00:05:38]             │ debg navigate to: http://localhost:6121/app/management
[00:05:38]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to undefined"
[00:05:38]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to undefined"
[00:05:38]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:05:38]             │ debg browser[INFO] http://localhost:6121/app/management?_t=1604515138688 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:05:38]             │
[00:05:38]             │ debg browser[INFO] http://localhost:6121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:38]             │ debg ... sleep(700) start
[00:05:39]             │ debg ... sleep(700) end
[00:05:39]             │ debg returned from get, calling refresh
[00:05:39]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:39]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:39]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:39]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:39]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:39]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:39]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:39]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting user-agent."
[00:05:39]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to management"
[00:05:39]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to undefined"
[00:05:39]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:05:39]             │ debg browser[INFO] http://localhost:6121/app/management?_t=1604515138688 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:05:39]             │
[00:05:39]             │ debg browser[INFO] http://localhost:6121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:39]             │ debg currentUrl = http://localhost:6121/app/management
[00:05:39]             │          appUrl = http://localhost:6121/app/management
[00:05:39]             │ debg TestSubjects.find(kibanaChrome)
[00:05:39]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:40]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:40]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:40]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:40]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:40]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:40]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:40]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:40]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting user-agent."
[00:05:40]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to management"
[00:05:40]             │ debg ... sleep(501) start
[00:05:40]             │ debg ... sleep(501) end
[00:05:40]             │ debg in navigateTo url = http://localhost:6121/app/management
[00:05:40]             │ debg TestSubjects.exists(statusPageContainer)
[00:05:40]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:43]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:43]             │ debg isGlobalLoadingIndicatorVisible
[00:05:43]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:05:43]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:05:45]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:05:45]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:05:45]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:05:45]             │ debg clickKibanaIndexPatterns link
[00:05:45]             │ debg TestSubjects.click(indexPatterns)
[00:05:45]             │ debg Find.clickByCssSelector('[data-test-subj="indexPatterns"]') with timeout=10000
[00:05:45]             │ debg Find.findByCssSelector('[data-test-subj="indexPatterns"]') with timeout=10000
[00:05:46]             │ debg isGlobalLoadingIndicatorVisible
[00:05:46]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:05:46]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:05:47]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:05:48]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:05:48]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:05:48]             │ debg Find.existsByLinkText('shakespeare')  with timeout=2500
[00:05:50]             │ debg isGlobalLoadingIndicatorVisible
[00:05:50]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:05:50]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:05:52]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:05:52]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:05:52]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:05:52]             │ debg TestSubjects.click(createIndexPatternButton)
[00:05:52]             │ debg Find.clickByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:05:52]             │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:05:52]             │ debg isGlobalLoadingIndicatorVisible
[00:05:52]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:05:52]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:05:54]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:05:54]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:05:54]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:05:54]             │ debg setIndexPatternField(shakespeare)
[00:05:54]             │ debg TestSubjects.find(createIndexPatternNameInput)
[00:05:54]             │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternNameInput"]') with timeout=10000
[00:05:56]             │ debg setIndexPatternField set to shakespeare
[00:05:56]             │ debg ... sleep(2000) start
[00:05:58]             │ debg ... sleep(2000) end
[00:05:58]             │ debg TestSubjects.find(createIndexPatternGoToStep2Button)
[00:05:58]             │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternGoToStep2Button"]') with timeout=10000
[00:05:58]             │ debg ... sleep(2000) start
[00:06:00]             │ debg ... sleep(2000) end
[00:11:00]             │ debg TestSubjects.find(createIndexPatternButton)
[00:11:00]             │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:11:00]             │ debg isGlobalLoadingIndicatorVisible
[00:11:00]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:11:00]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:11:02]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:11:02]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:11:02]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:11:02]             │ info currentUrl http://localhost:6121/app/management/kibana/indexPatterns/patterns/c05a3b80-1ecd-11eb-8f0e-0772001c6408#/?_a=(tab:indexedFields)
[00:11:02]             │ debg Index pattern created: http://localhost:6121/app/management/kibana/indexPatterns/patterns/c05a3b80-1ecd-11eb-8f0e-0772001c6408#/?_a=(tab:indexedFields)
[00:11:02]             │ debg index pattern ID:  ?_a=(tab:indexedFields)
[00:12:11]           └-: index patterns
[00:12:11]             └-> "before all" hook
[00:12:11]             └-> can create an index pattern
[00:12:11]               └-> "before each" hook: global before each
[00:12:11]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [.kibana] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:12:12]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [.kibana/v8gaTqekSO-SuBaMFHOVuw] create_mapping
[00:12:13]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [.kibana/v8gaTqekSO-SuBaMFHOVuw] update_mapping [_doc]
[00:12:14]               └- ✓ pass  (2.0s) "data plugin index patterns can create an index pattern"
[00:12:14]             └-> can get all ids
[00:12:14]               └-> "before each" hook: global before each
[00:12:14]               │ info Taking screenshot "/dev/shm/workspace/parallel/2/kibana/test/functional/screenshots/failure/data plugin index patterns can get all ids.png"
[00:12:14]               │ info Current URL is: http://localhost:6121/app/dashboards#/view/61c58ad0-3dd3-11e8-b2b9-5d5dc1715159?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%27Mon%20Apr%2009%202018%2017:56:08%20GMT-0400%27,to:%27Wed%20Apr%2011%202018%2017:56:08%20GMT-0400%27))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(darkTheme:!f,hidePanelTitles:!f,useMargins:!t),query:(language:lucene,query:%27%27),tags:!(),timeRestore:!t,title:%27dashboard%20with%20filter%27,viewMode:view)
[00:12:14]               │ info Saving page source to: /dev/shm/workspace/parallel/2/kibana/test/plugin_functional/failure_debug/html/data plugin index patterns can get all ids.html
[00:12:14]               └- ✖ fail: data plugin index patterns can get all ids
[00:12:14]               │      Error: expected false to equal true
[00:12:14]               │       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
[00:12:14]               │       at Assertion.equal (packages/kbn-expect/expect.js:227:8)
[00:12:14]               │       at Context.it (test/plugin_functional/test_suites/data_plugin/index_patterns.ts:52:34)
[00:12:14]               │ 
[00:12:14]               │ 

Stack Trace

Error: expected false to equal true
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.equal (packages/kbn-expect/expect.js:227:8)
    at Context.it (test/plugin_functional/test_suites/data_plugin/index_patterns.ts:52:34)

Plugin Functional Tests.test/plugin_functional/test_suites/data_plugin/index_patterns·ts.data plugin index patterns can get all ids

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:05:58]         └-: data plugin
[00:05:58]           └-> "before all" hook
[00:05:58]           └-> "before all" hook
[00:05:58]             │ info [../functional/fixtures/es_archiver/getting_started/shakespeare] Loading "mappings.json"
[00:05:58]             │ info [../functional/fixtures/es_archiver/getting_started/shakespeare] Loading "data.json.gz"
[00:05:58]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [shakespeare] creating index, cause [api], templates [], shards [5]/[1]
[00:05:58]             │ info [../functional/fixtures/es_archiver/getting_started/shakespeare] Created index "shakespeare"
[00:05:58]             │ debg [../functional/fixtures/es_archiver/getting_started/shakespeare] "shakespeare" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [shakespeare/2aZs7ETpSw-hiMqMa7jhKA] update_mapping [_doc]
[00:06:06]             │ info [../functional/fixtures/es_archiver/getting_started/shakespeare] Indexed 111396 docs into "shakespeare"
[00:06:06]             │ debg navigating to settings url: http://localhost:6121/app/management
[00:06:06]             │ debg navigate to: http://localhost:6121/app/management
[00:06:06]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to undefined"
[00:06:06]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to undefined"
[00:06:06]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:06:06]             │ debg browser[INFO] http://localhost:6121/app/management?_t=1604514339739 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:06:06]             │
[00:06:06]             │ debg browser[INFO] http://localhost:6121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:06:06]             │ debg ... sleep(700) start
[00:06:07]             │ debg ... sleep(700) end
[00:06:07]             │ debg returned from get, calling refresh
[00:06:07]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:07]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:07]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:07]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:07]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:07]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:07]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:07]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting user-agent."
[00:06:07]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to management"
[00:06:07]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to undefined"
[00:06:07]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:06:07]             │ debg browser[INFO] http://localhost:6121/app/management?_t=1604514339739 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:06:07]             │
[00:06:07]             │ debg browser[INFO] http://localhost:6121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:06:07]             │ debg currentUrl = http://localhost:6121/app/management
[00:06:07]             │          appUrl = http://localhost:6121/app/management
[00:06:07]             │ debg TestSubjects.find(kibanaChrome)
[00:06:07]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:06:08]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:08]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:08]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:08]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:08]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:08]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:08]             │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 9946:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:06:08]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting user-agent."
[00:06:08]             │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 840:14 "Reporting application changed to management"
[00:06:08]             │ debg ... sleep(501) start
[00:06:09]             │ debg ... sleep(501) end
[00:06:09]             │ debg in navigateTo url = http://localhost:6121/app/management
[00:06:09]             │ debg TestSubjects.exists(statusPageContainer)
[00:06:09]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:06:11]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:06:12]             │ debg isGlobalLoadingIndicatorVisible
[00:06:12]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:06:12]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:06:13]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:06:14]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:06:14]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:06:14]             │ debg clickKibanaIndexPatterns link
[00:06:14]             │ debg TestSubjects.click(indexPatterns)
[00:06:14]             │ debg Find.clickByCssSelector('[data-test-subj="indexPatterns"]') with timeout=10000
[00:06:14]             │ debg Find.findByCssSelector('[data-test-subj="indexPatterns"]') with timeout=10000
[00:06:14]             │ debg isGlobalLoadingIndicatorVisible
[00:06:14]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:06:14]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:06:15]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:06:16]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:06:16]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:06:16]             │ debg Find.existsByLinkText('shakespeare')  with timeout=2500
[00:06:18]             │ debg isGlobalLoadingIndicatorVisible
[00:06:18]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:06:18]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:06:20]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:06:20]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:06:20]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:06:20]             │ debg TestSubjects.click(createIndexPatternButton)
[00:06:20]             │ debg Find.clickByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:06:20]             │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:06:20]             │ debg isGlobalLoadingIndicatorVisible
[00:06:20]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:06:20]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:06:22]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:06:22]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:06:22]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:06:22]             │ debg setIndexPatternField(shakespeare)
[00:06:22]             │ debg TestSubjects.find(createIndexPatternNameInput)
[00:06:22]             │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternNameInput"]') with timeout=10000
[00:06:24]             │ debg setIndexPatternField set to shakespeare
[00:06:24]             │ debg ... sleep(2000) start
[00:06:26]             │ debg ... sleep(2000) end
[00:06:26]             │ debg TestSubjects.find(createIndexPatternGoToStep2Button)
[00:06:26]             │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternGoToStep2Button"]') with timeout=10000
[00:06:26]             │ debg ... sleep(2000) start
[00:06:28]             │ debg ... sleep(2000) end
[00:11:28]             │ debg TestSubjects.find(createIndexPatternButton)
[00:11:28]             │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:11:28]             │ debg isGlobalLoadingIndicatorVisible
[00:11:28]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:11:28]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:11:30]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:11:30]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:11:30]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:11:30]             │ info currentUrl http://localhost:6121/app/management/kibana/indexPatterns/patterns/e3f746c0-1ecb-11eb-a88c-6f11706b237c#/?_a=(tab:indexedFields)
[00:11:30]             │ debg Index pattern created: http://localhost:6121/app/management/kibana/indexPatterns/patterns/e3f746c0-1ecb-11eb-a88c-6f11706b237c#/?_a=(tab:indexedFields)
[00:11:30]             │ debg index pattern ID:  ?_a=(tab:indexedFields)
[00:12:45]           └-: index patterns
[00:12:45]             └-> "before all" hook
[00:12:45]             └-> can create an index pattern
[00:12:45]               └-> "before each" hook: global before each
[00:12:45]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [.kibana] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:12:45]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [.kibana/UZsOtWvNQ32XoB4n6Hp8Wg] create_mapping
[00:12:46]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1604512860457288017] [.kibana/UZsOtWvNQ32XoB4n6Hp8Wg] update_mapping [_doc]
[00:12:47]               └- ✓ pass  (2.0s) "data plugin index patterns can create an index pattern"
[00:12:47]             └-> can get all ids
[00:12:47]               └-> "before each" hook: global before each
[00:12:47]               │ info Taking screenshot "/dev/shm/workspace/parallel/2/kibana/test/functional/screenshots/failure/data plugin index patterns can get all ids.png"
[00:12:47]               │ info Current URL is: http://localhost:6121/app/dashboards#/view/61c58ad0-3dd3-11e8-b2b9-5d5dc1715159?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%27Mon%20Apr%2009%202018%2017:56:08%20GMT-0400%27,to:%27Wed%20Apr%2011%202018%2017:56:08%20GMT-0400%27))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(darkTheme:!f,hidePanelTitles:!f,useMargins:!t),query:(language:lucene,query:%27%27),tags:!(),timeRestore:!t,title:%27dashboard%20with%20filter%27,viewMode:view)
[00:12:47]               │ info Saving page source to: /dev/shm/workspace/parallel/2/kibana/test/plugin_functional/failure_debug/html/data plugin index patterns can get all ids.html
[00:12:47]               └- ✖ fail: data plugin index patterns can get all ids
[00:12:47]               │      Error: expected false to equal true
[00:12:47]               │       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
[00:12:47]               │       at Assertion.equal (packages/kbn-expect/expect.js:227:8)
[00:12:47]               │       at Context.it (test/plugin_functional/test_suites/data_plugin/index_patterns.ts:52:34)
[00:12:47]               │ 
[00:12:47]               │ 

Stack Trace

Error: expected false to equal true
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.equal (packages/kbn-expect/expect.js:227:8)
    at Context.it (test/plugin_functional/test_suites/data_plugin/index_patterns.ts:52:34)

Metrics [docs]

async chunks size

id before after diff
ml 6.6MB 6.6MB +462.0B

distributable file count

id before after diff
default 42715 42718 +3

page load bundle size

id before after diff
spaces 290.2KB 290.3KB +109.0B

Saved Objects .kibana field count

id before after diff
_doc_count - 1 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jgowdyelastic jgowdyelastic deleted the job-saved-object-initialization branch November 4, 2020 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Anomaly Detection ML anomaly detection Feature:Data Frame Analytics ML data frame analytics features Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) :ml release_note:enhancement review Team:APM All issues that need APM UI Team support Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.